package model

import "github.com/gogf/gf/v2/os/gtime"

type FileListInput struct {
	Recycle   bool   `json:"recycle" in:"query" v:"boolean"`
	Keywords  string `json:"keywords" in:"query"`
	Storage   string `json:"storage" in:"query"`
	Type      string `json:"type" in:"query"`
	StartDate string `json:"start_date" in:"query" v:"date" dc:"开始时间"`
	EndDate   string `json:"end_date" in:"query" v:"date" dc:"结束时间"`
	PageSizeReq
}
type FileListItem struct {
	Id          uint64      `json:"id"`
	FileName    string      `json:"file_name" dc:"文件名"`
	FilePath    string      `json:"file_path" dc:"文件路径"`
	FileUrl     string      `json:"file_url" dc:"文件路径"`
	FileFormat  string      `json:"file_format" dc:"文件格式"`
	FileType    string      `json:"file_type" dc:"文件类型"`
	FileStorage string      `json:"file_storage" dc:"存储方式"`
	FileSize    uint64      `json:"file_size" dc:"文件大小"`
	UserId      uint64      `json:"user_id" dc:"上传用户id"`
	GroupId     uint64      `json:"group_id" dc:"分组id"`
	CreatedAt   *gtime.Time `json:"created_at"`
	DeletedAt   *gtime.Time `json:"deleted_at"`
}
type FileMenuItem struct {
	Id    uint64 `json:"id"`
	Label string `json:"label"`
}
